<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    button {
      width: 200px;
      height: 200px;
      background-color: pink;
      color: yellow;
      font-style: 50px;
    }
  </style>
</head>

<body>
  <button>你好</button>
  <script>
    document.querySelector('button').onclick = function () {
      console.log('666')
      setTimeout(() => {
        console.log('888')

      }, 2000)

    }
  </script>
</body>

</html>